Skip to content

Conversation

@lucalavezzo
Copy link
Collaborator

@lucalavezzo lucalavezzo commented Nov 24, 2025

@lucalavezzo lucalavezzo marked this pull request as ready for review November 24, 2025 15:41
)
pdf_hist += "UncertByHelicity"
pdf_corr_hist += "UncertByHelicity"
symmetrize = "quadratic"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this variable used?

cols,
**info,
)
if theory_helpers.get("pdf_from_corr") is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better:

for pdf_name, pdf in theory_helpers.get("pdf_from_corr", {}).itmes():
    logger.debug(
                    f"Make PDF (from correction file) uncertainty by helicity histograms for {dataset_name} and PDF from correction {pdf_name}"
                )
    add_pdfUncertByHelicity_hist(
                    results,
                    df,
                    pdf,
                    pdf_name,
                    pdf_name,
                    axes,
                    cols,
                    **info,
                )

# alphaS from correction histograms only available for these sets,
# so fall back to CT18Z for other sets
if not ("MSHT20" in asname or "CT18Z" in asname or "MSHT20an3lo" in asname):
if not (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we dynamically check if the correction histogram is there and otherwise use the default? E.g.

if not asname in theory_corrections.valid_theory_corrections()

pdf_hist = pdfName
pdf_corr_hist = (
f"scetlib_dyturbo{pdf.upper().replace('AN3LO', 'an3lo')}VarsCorr"
if self.corr_hist_name == "scetlib_dyturboCorr"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be something with "MSHT20" here?

@lucalavezzo lucalavezzo changed the title Fitting new lattice model, PDFs from correction files through helicities Fitting new lattice-constrained NP model, PDFs from correction files through helicities Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants